namespace Game.Networking.Server {
	public sealed class ScoreChatCommand : ChatCommand {
		public override string Keyword {
			get {
				return "score";
			}
		}
		public override string ProcessCommand(ClientState sender, string[] commandWords) {
			var redScore    = ServerGameController.Instance.GetBaseForTeam(TeamType.Red )?.Score ?? 0;
			var bluScore    = ServerGameController.Instance.GetBaseForTeam(TeamType.Blue)?.Score ?? 0;
			var playerScore = ServerAgentsController.Instance.GetAgentStats(sender.UnitId)?.Score ?? 0;
			return $"<color=\"red\">Red Team Score: {redScore}</color>\n<color=\"blue\">Blue Team Score: {bluScore}</color>\nYour Score: {playerScore}";
		}
	}
}
